# 04-with.py

# 不想手动关闭文件可以使用with 声明,自动关闭文件
with open('./03-循环读取文件.py','r',encoding="utf-8") as file:
    for x in file:
        print(x)